package com.ware.controller.home;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;
import com.ware.controller.BaseController;

public class IndexController extends BaseController {
	
	public void index(){
		this.render("index.ftl");
	}
	
	public void getConnection(){
		String sql = "select * from com_connection";
		Record con = Db.findFirst(sql);
		this.renderJson(con);
	}
}
